<template>


    <br>
     离人赋
     <br>
     <PriceEdit></PriceEdit>


   
   
</template>
<script  lang="ts" setup>
import PriceEdit from '@/components/PriceEdit.vue';
import * as echarts from 'echarts';


onMounted(() => {
    let option = {
        title: {
            text: 'ECharts 折线图堆叠'
        },
        tooltip: {},
        xAxis: {
            data: ['衬衫', '羊毛衫', '雪纺衫', '裤子', '高跟鞋', '袜子']
        },
        yAxis: { },
        series: [
            {
                name: '销量',
                type: 'bar',
                data: [5, 20, 36, 10, 10, 20]
            }
        ]
    }

    initChart(option);
});

const initChart = (option: any) => {

    var myChart = echarts.init(document.getElementById('main'));

    myChart.setOption(option);

    window.addEventListener('resize', function () {
        myChart.resize();
    });

}


</script>

<style scoped>

</style>
